//
//  QCActiveCell.swift
//  爱汽车
//
//  Created by tucici on 2024/1/12.
//

import UIKit
import TCCKit
class QCActiveCell: UITableViewCell {
    @IBOutlet var input: CCTextField!
    @IBOutlet var btn: UIButton!
    var block:((_ text:String)->Void)?
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
    @IBAction func actionForBtn(_ sender: UIButton) {
        block?(input.text ?? "")
    }
}

//MARK: - UITextFieldDelegate
extension QCActiveCell:UITextFieldDelegate{
    func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool {
        return true
    }
    
}
